package com.springtest.factorybean;

import com.springtest.jdk.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ProxyFactoryBeanTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext =new ClassPathXmlApplicationContext("proxyfactorbean.xml");
        UserDao userDao = (UserDao) applicationContext.getBean("userDaoProxy1");
        userDao.addUser();
        userDao.deleUser();
    }
}
